package com.vitabuybuy.tv.dto

import androidx.databinding.BaseObservable
import androidx.databinding.Bindable
import com.vitabuybuy.tv.BR
import com.vitabuybuy.tv.utils.LanaugeUtils
import java.io.Serializable

/**
 * 作者：SimGa
 * 日期：2021/3/5
 * 时间：18:12
 * 包名：com.vitabuybuy.tv.dto
 */
class TalentUserInfoDto : BaseObservable(), Serializable {

    var gender: String? = null
    var original: String? = null
    var apply = false
    var update = false
    var balanceAmount = 0.0
    var enabled = false
    var shareTaskRate = 0.0
    var realname: String? = null
    var userSign: String? = null
    @Bindable
    var avatar: String? = null
        set(avatar) {
            field = avatar
            notifyPropertyChanged(BR.avatar)
        }
    var reason: String? = null
    var protocolImage: String? = null
    var liveTaskRate = 0.0
    var deleted = false
    var IDCardNumber: String? = null
    var phone: String? = null
    var createTime: String? = null
    var goldQuantity = 0
    var favoriteQuantity = 0
    var id = 0
    var age = 0
    var status: String? = null
    var facebookId: String? = ""
    var facebookLink: String? = ""
    var facebookFansQuantity = 0
    var facebookPrice = 0.0
    var instagramId: String? = ""
    var instagramLink: String? = ""
    var instagramFansQuantity = 0
    var instagramPrice = 0.0
    var twitterId: String? = ""
    var twitterLink: String? = ""
    var twitterFansQuantity = 0
    var twitterPrice = 0.0

    /**
     * image : 123.jpg
     * id : 15
     * content : 案例1
     */
    var experienceList: MutableList<CaseBean>? = null

    /**
     * name : 衣服
     * id : 1
     */
    var labelList: List<FieldLabelDto>? = null

    /**
     * name : {"EN":"China","CN":"中国","MA":"China"}
     * id : 1
     */
    var regionList: List<RegionListBean>? = null

    class ExperienceListBean {
        var image: String? = null
        var id = 0
        var content: String? = null
    }
    class LabelListBean {
        var name: String? = null
        var id = 0

    }
    class RegionListBean : Serializable {
        var name: String? = null
            get() = LanaugeUtils.returnStrByLocation(field)
        var id = 0
    }
}